#include "CharacterManager.h"
#include "Character.h"
#include <iostream>
#include <string>
#include "Report.h"

using namespace std;

void main ()
{
	Report report;
	CharacterManager chrMng(true);
	CharacterManager chrMng1(true);
	Character* chr11;
	chr11 = chrMng1.newChr("tex3");
	Character* chr12;
	chr12 = chrMng1.newChr("tex3");

	Character* chr;
	chr = chrMng.newChr("tex1");
	Character* chr1;
	chr1 = chrMng.newChr("tex1");
	Character* chr2;
	chr2 = chrMng.newChr("tex2");
	Character* chr3;
	chr3 = chrMng.newChr("tex1");
	Character* chr4;
	chr4 = chrMng.newChr("tex4");

	cout << chr->getText() << endl;
	
	chrMng.delChr(chr12);

	chrMng.delChr(chr);
	chrMng.delChr(chr1);
	chrMng.delChr(chr2);
	chrMng.delChr(chr3);

	chrMng.delChr(chr11);

	report = chrMng.getReport();
	cout<< "Character Created Count: " << report.getChrCC() << endl;
	cout<< "Character Deleted Count: " << report.getChrDC() << endl;
	cout<< "Texture Created Count: " << report.getTexCC() << endl;
	cout<< "Texture Deleted Count: " << report.getTexDC() << endl;
	cout<< "Texture Undeleted:" << report.getTexUndel() << endl;
	cout<< "Max Memory Used: " << report.getMaxMemUsed() << endl;
	cout<< "Memory Leaked: " << report.getMemLeaked() << endl;
}